<!DOCTYPE html>
<html lang="en">


{include file="Public/head"}

<body data-type="widgets">
<script src="/assets/js/theme.js"></script>
<div class="am-g tpl-g">

    {include file='Public:header'}
    {include file='Public:menu2'}



    <!-- 内容区域 -->
    <div class="tpl-content-wrapper">
        <div class="row-content am-cf">
            <div class="row">
                <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">

                    <div class="widget am-cf">
                        <div class="widget-head am-cf">
                            <div class="widget-title  am-cf">旗舰店账户管理</div>
                        </div>
                        <div class="widget-body  am-fr">
                            <div class="am-u-sm-12 am-u-md-6 am-u-lg-1" >
                                <div class="am-form-group" >
                                    <div class="am-btn-toolbar" >
                                        <div class="am-btn-group am-btn-group-xs" >
                                            <a href="{:Url('add')}" class="am-btn am-btn-default am-btn-success" ><span class="am-icon-plus" ></span> 新增</a>
                                        </div>

                                    </div>
                                </div>
                            </div>

                            <!--筛选搜索-->
                            <form id="searchform" action="{:Url('index')}"  method="get" class="am-form tpl-form-border-form tpl-form-border-br">

                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-1">
                                    <div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">
                                        <input type="text" class="am-btn  am-btn-default am-btn-success tpl-table-list-field am-icon-search"  name="mobile" placeholder="账号">

                                    </div>

                                </div>

                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-2" style="float: left;">
                                    <div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">
                                            <span class="am-input-group-btn">
                                                <button class="am-btn  am-btn-default am-btn-success tpl-table-list-field am-icon-search" type="submit" ></button>
                                            </span>
                                    </div>
                                </div>

                            </form>
                            <div class="am-u-sm-12 am-u-md-6 am-u-lg-1" >
                                <div class="am-form-group" >
                                    <div class="am-btn-toolbar" >
                                        <div class="am-btn-group am-btn-group-xs" >
                                            <a href="{:Url('settingview')}" class="am-btn am-btn-default am-btn-success"><span class="am-icon-plus" ></span> 设置</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="am-u-sm-10">
                                <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black " id="example-r">
                                    <thead>
                                    <tr>
                                        <th>id</th>
                                        <th>账号</th>
                                        <th>姓名</th>
                                        <th>地址</th>
                                        <th>加入时间</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {foreach name="data" key="key" item="value"}
                                    <tr class="gradeX">
                                        <td>{$value.id}</td>
                                        <td>{$value.mobile}</td>
                                        <td>{$value.name}</td>
                                        <td>{$value.address}</td>
                                        <td>{$value.create_time}</td>
                                        <td>
                                            <div class="tpl-table-black-operation">
                                                <a href="{:Url('add')}?id={$value.id}">
                                                    <i class="am-icon-pencil"></i> 编辑
                                                </a>
                                                <a onclick="del_button({$value.id});" href="javascript:void(0);" href="javascript:;" class="tpl-table-black-operation-del">
                                                    <i class="am-icon-trash"></i> 删除
                                                </a>
                                            </div>
                                        </td>
                                    </tr>
                                    {/foreach}
                                    <!-- more data -->
                                    </tbody>
                                </table>
                            </div>
                            <div class="am-u-lg-10 am-cf">

                            <div class="am-fr">
                                <ul class="am-pagination tpl-pagination">
                                    {$data->render()}
                                </ul>
                            </div>
                        </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>

</body>
{include file='Public:script'}
<script>
    function roleSubmit(){
        console.log(11);

        $.ajax({
            url:"https://apis.map.qq.com/jsapi?qt=poi",
            type:'GET',
            success:function(res){
                console.log(res);
            }
        });
    }
</script>

</html>